﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminUserInfoControl.ascx.cs" Inherits="SimplePMT.Control.AdminUserInfoControl" %>
<form name="userForm">
<input type="hidden" name="MemberID" value="<%= MemberID %>"/>
<% if (!AdminAccess) { %>
<span style="display:none">
<input type="checkbox" id="ReadOnly" name="ReadOnly" value="1"/>
<input type="checkbox" id="AdminAccess" name="AdminAccess" value="1"/>
</span>
<% } %>
<table width="100%" cellpadding=3>
    <tr>
        <td style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE">User Account</td>
    </tr>
    <tr>
        <td style="border:1px solid #6893cf;" bgcolor="#ffffff" valign=top>
            <table width="100%" align=center>

                <tr>
                    <td align=right width=30%><b>First Name:</b></td>
                    <td><%= FormElement.TextBox(30, "FirstName", member.FirstName, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Last Name:</b></td>
                    <td><%= FormElement.TextBox(30, "LastName", member.LastName, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Username:</b></td>
                    <td><%= FormElement.TextBox(30, "Username", member.UserName, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Password:</b></td>
                    <td><%= FormElement.TextBox(30, "Password", member.Password, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Email Address:</b></td>
                    <td><%= FormElement.TextBox(30, "EmailAddress", member.EmailAddress, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Contact Phone:</b></td>
                    <td><%= FormElement.TextBox(30, "Phone", member.ContactPhone, "", true)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Show Contact Info:</b></td>
                    <td><%= FormElement.CheckBox("ContactInfo", "1", "Yes", "", true, member.ShowEmailAddress && member.ShowFullName) %></td>
                </tr>
                <% if (AdminAccess)
                   { %>
                <tr>
                    <td align=right width=30%><b>Terminated:</b></td>
                    <td><%= FormElement.CheckBox("Terminated", "1", "Yes", "", true, member.Terminated)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Read Only Access:</b></td>
                    <td><%= FormElement.CheckBox("ReadOnly", "1", "Yes", "", true, member.ReadOnly)%></td>
                </tr>
                <tr>
                    <td align=right width=30%><b>Admin Access:</b></td>
                    <td><%= FormElement.CheckBox("AdminAccess", "1", "Yes", "", true, member.AdminAccess)%></td>
                </tr>
                <% } %>
                <tr>
                    <td></td>
                    <td>
                    <button type="button" id="Cancel" onclick="top.win.close();">Cancel</button> &nbsp;&nbsp;
                    <button type="button" id="Save" onclick="saveChanges();">Save Changes</button>
                    </td>
                </tr>
            </table>
                <p>
        </td>
    </tr>
</table>
</form>